import { createRouter, createWebHashHistory } from 'vue-router'
import kaishi from '../views/kaishi.vue'

const routes = [
  {
    path: '/',
    name: 'kaishi',
    component: kaishi
  },
  {
    path: '/glydl',
    name: 'glydl',
    component: () => import('../views/glydl.vue')
  },
  {
    path: '/jsdl',
    name: 'jsdl',
    component: () => import('../views/jsdl.vue')
  },
  {
    path: '/xsdl',
    name: 'xsdl',
    component: () => import('../views/xsdl.vue')
  },
  {
    path: '/jszc',
    name: 'jszc',
    component: () => import('../views/jszc.vue')
  },
  {
    path: '/tiao',
    name: 'tiao',
    component: () => import('../views/tiao.vue')
  },
  {
    path: '/xs',
    name: 'xs',
    meta:{
      showFooter:true
    },
    component: () => import('../views/xs.vue'),
    children: [
      {
        path: "xsxx",
        name: "xsxx",
        meta:{
          showFooter:false
        },
        component: () => import("../views/xsxx.vue"),
      },{
        path: "xscj",
        name: "xscj",
        meta:{
          showFooter:false
        },
        component: () => import("../views/xscj.vue"),
      },
    ],
  },
  {
    path: '/js',
    name: 'js',
    meta:{
      showFooter:true
    },
    component: () => import('../views/js.vue'),
    
    children: [
      {
        path: "jsbbxx",
        name: "Jsbbxx",
        meta:{
          showFooter:false
        },
        component: () => import("../views/jsbbxx.vue"),
      },{
        path: "jscj",
        name: "Jscj",
        meta:{
          showFooter:false
        },
        component: () => import("../views/jscj.vue"),
      },
      {
        path: "jsxx",
        name: "jsxx",
        meta:{
          showFooter:false
        },
        component: () => import("../views/jsxx.vue"),
      },
      {
        path: "jstjt",
        name: "jstjt",
        meta:{
          showFooter:false
        },
        component: () => import("../views/jstjt.vue"),
      },
    ],
  },
  {
    path: '/gly',
    name: 'gly',
    meta:{
      showFooter:true
    },
    component: () => import('../views/gly.vue'),
    children: [
      // {
      //   path: "glyrl",
      //   name: "glyrl",
      //   meta:{
      //     showFooter:false
      //   },
      //   component: () => import("../views/glyrl.vue"),
      // },
      {
        path: "glyxsxx",
        name: "glyxsxx",
        meta:{
          showFooter:false
        },
        component: () => import("../views/glyxsxx.vue"),
      },
      {
        path: "glyxscj",
        name: "glyxscj",
        meta:{
          showFooter:false
        },
        component: () => import("../views/glyxscj.vue"),
      },
      {
        path: "glyjsxx",
        name: "glyjsxx",
        meta:{
          showFooter:false
        },
        component: () => import("../views/glyjsxx.vue"),
      },
      {
        path: "glytjt",
        name: "glytjt",
        meta:{
          showFooter:false
        },
        component: () => import("../views/glytjt.vue"),
      },
    ],
  },
  {
    path: '/xszc',
    name: 'xszc',
    component: () => import('../views/xszc.vue')
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
